/* GUI CONVERTED from rcsorpa.p (converter v1.76) Fri May  3 13:22:31 2002 */
/* rcsorpa.p - Release Management Customer Schedules                    */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                  */
/* All rights reserved worldwide.  This is an unpublished work.         */
/* $Revision: 1.5.1.4 $                                                 */
/*V8:ConvertMode=Report                                                 */
/* REVISION: 7.3    LAST MODIFIED: 10/06/92           BY: WUG *G462*    */
/* REVISION: 7.3    LAST MODIFIED: 12/15/94           BY: rxm *GN16*    */
/* REVISION: 7.3    LAST MODIFIED: 03/23/95           BY: aed *G0J0*    */
/* REVISION: 8.5    LAST MODIFIED: 04/24/95           BY: dpm *J044*    */
/* REVISION: 7.4    LAST MODIFIED: 10/07/95           BY: vrn *G0YL*    */
/* REVISION: 8.5    LAST MODIFIED: 10/15/96           BY: *G2GJ* Ajit Deodhar */
/* REVISION: 8.6    LAST MODIFIED: 10/03/97           BY: bvm *K0KR*    */
/* REVISION: 9.1    LAST MODIFIED: 03/24/00 BY: *N08T* Annasaheb Rahane */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00 BY: *N0KP* myb              */
/* Old ECO marker removed, but no ECO header exists *F0PN*                    */
/* Revision: 1.5.1.3    BY: Ellen Borden   DATE: 03/04/02  ECO:  *P00G*       */
/* $Revision: 1.5.1.4 $   BY: Katie Hilbert  DATE: 04/15/02  ECO:  *P03J*     */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

/* SCHEDULED ORDER REPORT SUBPROGRAM */


/*GUI preprocessor directive settings */
&SCOPED-DEFINE PP_GUI_CONVERT_MODE REPORT

{mfdeclre.i}
{gplabel.i} /* EXTERNAL LABEL INCLUDE */
{wbrp02.i}

define input parameter scx_recid as recid.
define input parameter consignment as logical no-undo.
define input parameter dev as character no-undo.
define variable l_desc1  like pt_desc1   no-undo.

define variable i as integer.
define variable impexp   like mfc_logical no-undo.

define variable proc_id as character no-undo.
{socnvars.i}
using_cust_consignment = consignment.

{rcordfrm.i}
FORM /*GUI*/ 
   {rcordfma.i}

with STREAM-IO /*GUI*/  frame prm side-labels width 80 attr-space.

/* SET EXTERNAL LABELS */
setFrameLabels(frame prm:handle).

find scx_ref where recid(scx_ref) = scx_recid no-lock.

find si_mstr where si_site = scx_shipfrom no-lock.
find ad_mstr where ad_addr = scx_shipto no-lock.

find pt_mstr where pt_part = scx_part no-lock.
find so_mstr where so_nbr = scx_order no-lock.
find sod_det where sod_nbr = scx_order and sod_line = scx_line no-lock.
find cm_mstr where cm_addr = so_cust no-lock.
find first soc_ctrl no-lock.
find first gl_ctrl no-lock.
if available pt_mstr then l_desc1 = pt_desc1.
else if available sod_det then l_desc1 = sod_desc.
else l_desc1 = "".

{rcsoiq.i}
{wbrp04.i}
